package xml;

import java.io.File;

public class DocumentXML {
	protected TagXML radacina = null;
	public boolean hasInstance = false;
	public File f = null;
	public DocumentXML instance = null;
	private DocumentXML(TagXML radacina, String filename) {
		if(!this.hasInstance)	{	
			this.radacina = radacina;
			this.f = new File(filename);
		}
		else System.out.println("Nu se mai poate crea un nou fisier.");
	}
	public TagXML getRadacina() {
		return radacina;
	}
	public void setRadacina(TagXML radacina) {
		this.radacina = radacina;
	}
	public void setXMLFile (String filename) {
		File ff = new File (filename);
		f = ff;
	}
	public File getXMLFile () {
		return f;
	}
	public DocumentXML getInstance() {
		return instance;
	}
	public void acceptVisitor (XMLVisitor v) {
		
	}
	
}
